package com.scyshkj.university.wechat.wanxiao;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

/**
 * Created by 唐旭 on 2016/11/23.
 */
@Data
public class WanxiaoRechargeResult {
    @JsonProperty("recharge_order_no")
    private String rechargeOrderNo;

    @JsonProperty("out_id")
    private int outId;

    @JsonProperty("recharge_amount")
    private String rechargeAmount;

    @JsonProperty("return_code")
    private String returnCode;

    @JsonProperty("return_message")
    private String returnMessage;

    @JsonProperty("norce_str")
    private String norceStr;

    public boolean isError() {
        return !"SUCCESS".equalsIgnoreCase(returnCode);
    }
}
